<template>
    <div>
        页签 1 的内容55555
    </div>
</template>

<script lang="ts" setup>
import { defineEmits,onMounted,defineProps  } from 'vue';

const emits = defineEmits(['childMethod']);

const someMethod = () => {
    console.log('Page1 的方法被触发');
};

const props = defineProps({
    params: Object,
});

onMounted(() => {
  console.log('Page1.vue mounted',props.params.taskDefinitionKey);

  // 组件挂载后的逻辑
});
// 导出钩子方法，以便外部调用
defineExpose({
    someMethod,
});
</script>
